package test;

/**
 * 拼车状态枚举
 *
 * @author yangyang
 * @date 2017/7/8 11:39
 * @email kekecany@163.com
 *
 * (1: 拼车中, 2: 拼车成功, 3: 已发车, 4: 用户已上车, 5: 用户到达下车点 , 9: 车到终点, 10: 用户已评价，-1: 拼车失败)
 */
public enum  MatchStatusEnum {

    CARPOOLING(1, "拼车中"),
    CARPOOL_SUCCESS(2, "拼车成功"),
    DEPARTED(3, "已发车"),
    USER_IN_BUS(4, "用户已上车"),
    USER_OFF_BUS(5, "用户到达下车点"),
    CAR_ARRIVED_DEST(9, "车到终点"),
    USER_EVALUATED(10, "用户已评价"),
    CARPOOL_FAIL(-1, "拼车失败");
    
    private int val;
    
    private String desc;
    
    MatchStatusEnum(int val, String desc) {
        this.val = val;
        this.desc = desc;
    }


}
